package cn.lystudio.rohmtimeopwide_background_v11.service;

import cn.lystudio.rohmtimeopwide_background_v11.entity.dto.ShiftCapacityRecordDTO;
import cn.lystudio.rohmtimeopwide_background_v11.entity.po.ShiftCapacityRecordPO;
import cn.lystudio.rohmtimeopwide_background_v11.entity.vo.Capa4ExcelVO;
import cn.lystudio.rohmtimeopwide_background_v11.entity.vo.ConsoleCapaChartVO;
import cn.lystudio.rohmtimeopwide_background_v11.entity.vo.ShiftCapacityRecordVO;

import java.util.List;

public interface ShiftCapacityRecordService {
    List<ShiftCapacityRecordDTO> getAll(String machineNo,
                                        String searchStartTime,
                                        String searchEndTime,
                                        String otherKeywords);
    int delShiftCapacityRecord(Integer shiftCapaRecordID);
    int uptShiftCapacityRecord(ShiftCapacityRecordPO shiftCapacityRecordPO);
    List<ShiftCapacityRecordDTO> getDailyData(String machineNo,String dailyStart, String dailyEnd);
    List<ShiftCapacityRecordDTO> getDailyData4Dashboard(String machineNo,String dailyStart, String dailyEnd);
    ConsoleCapaChartVO getDailyData4Chart(String machineNo, String dailyStart, String dailyEnd);
    List<ShiftCapacityRecordVO> getShiftCapaRecordTimeLine(String machineNo, String beginDate, String endDate);
    int addShiftCapacityRecord(ShiftCapacityRecordPO shiftCapacityRecordPO);
    ShiftCapacityRecordPO getShiftCapacityRecordByID(int shiftCapaRecordID);

    /**
     * 获取指定机器号和日期的CAPA4数据，用于导出到Excel。
     *
     * @param selectedMachineNo 指定要查询的机器号。
     * @param selectedDate      指定要查询的日期，格式为"yyyy-MM-dd"。
     * @return 返回包含指定机器号和日期的CAPA4数据的VO对象，用于Excel导出。
     */
    Capa4ExcelVO getCapa4Excel(String selectedMachineNo, String selectedDate);

    List<ShiftCapacityRecordPO> getCapa4Home(Integer secDeptID,Integer machineType,String selectDate);




}
